package com.eeprint.system.mapper.tenant;



import com.eeprint.system.domain.tenant.TenantUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Mapper
@Repository
public interface TenantUserMapper {
    TenantUser selectByUserPhone(@Param("userPhone") String userPhone);


    /**
      * @Author newhonor
      * @Date 2020/10/19
      * @Version 1.0
    **/

    public void addTenantUser(TenantUser tenantUser);
    public BigInteger findTenantUserIdByPhonePassword(TenantUser tenantUser);
    public int countTenantUser(BigInteger tenantId);
    public List<TenantUser> findTenantUsers(BigInteger tenantId, int index,int limit);
    public void updateTenantUser(TenantUser tenantUser);
    public void updateTenantUserPassword(TenantUser tenantUser);
    public TenantUser findTenantUserById(BigInteger id);

    String selectNameById(BigInteger createUserId);


}
